package com.yijiaganxi.services.api.merchantsExplain;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.yijiaganxi.common.entity.merchantsExplain.YjgxMerchantsExplain;
import org.yijiaganxi.common.res.R;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import org.yijiaganxi.common.GlobalConstants;
import com.yijiaganxi.services.service.merchantsExplain.YjgxMerchantsExplainService;

@Validated
@RestController
@RequestMapping("/services/yjgxMerchantsExplain/"+GlobalConstants.WECHAT_FLAG)
public class YjgxMerchantsExplainApi {

	@Autowired
	private YjgxMerchantsExplainService  merchantsExplainService;
	
	/**
	 * 查询商家说明
	 * @return
	 */
	@GetMapping("getMerchantsExplainListApi")
	private R getMerchantsExplainListApi() {
		return R.opertionListResponse( merchantsExplainService.selectList(new EntityWrapper<YjgxMerchantsExplain>()
				.eq("status", 1)));
	}
	
}
